/**
 * Created by zpc on 2017/12/14.
 */
$(function () {
    //start_play();

    $('#fullpage').fullpage({
        verticalCentered: "true",
        resize: true,
        navigation: true,
        navigationColor: "#fff",
        loopBottom: true,
        loopTop: true,
        afterLoad: function (anchorLink, index) {
            if (index == 1) {
            }
        },
        onLeave: function (index, direction) {
        }
    });



    //var setin=setInterval('scrollNews()',5000);
    //mouse();

    $(".introduce_box").mousemove(function(){
        $(this).css({"overflow-y":"scroll"})
    });
    $(".introduce_box").mouseout(function(){
        $(this).css({"overflow-y":"hidden"})
    })




    var getFullYear = $(".content .about_box2 .getFullYear");
    var myDate = new Date();
    getFullYear.html(myDate.getFullYear());
})
function start_play() {
    setTimeout(function () {
        $(".content .content1").slide({
            mainCell: ".introduce_box",
            autoPlay: true,
            //defaultPlay:true,
            effect: "topMarquee",
            vis: 1,
            interTime: 50,
            trigger: "click",
            triggerTime: 2000

        })
    }, 3000);
}

var mmmp = false;
function scrollNews(){
    if (mmmp) {
        return;
    }
    $(document).ready(function(){
        $('.introduce_box p').eq(0).fadeOut("slow",function(){
            $(this).clone().appendTo($(this).parent()).fadeIn("slow");
            $(this).remove();
        });
    });
}
function mouse() {
    $(".introduce_box").mouseover(function () {
        mmmp = true;
    });
    $(".introduce_box").mouseout(function () {
        mmmp = false;
    })
}
